package cn.gong.store.bean;

import cn.gong.base.bean.BaseBean;
import cn.gong.base.config.AppParameters;

public class JsonCache extends BaseBean {
	private int versionCode;
	private String data;
	private long expireTime;

	public JsonCache(String data) {
		this.data = data;
		this.versionCode = AppParameters.VERSION_CODE;
		this.expireTime = System.currentTimeMillis() + 7 * 24 * 60 * 60 * 1000;
	}

	public int getVersionCode() {
		return versionCode;
	}

	public void setVersionCode(int versionCode) {
		this.versionCode = versionCode;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public boolean isNowBean() {
		return this.versionCode == AppParameters.VERSION_CODE;
	}

	public long getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(long expireTime) {
		this.expireTime = expireTime;
	}

}
